﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Gallery.Models;
using MvcEngine.Core.Pagination;

namespace MvcEngine.Gallery.Repositories
{
    public interface IGalleryCategoryRepository
    {
        GalleryCategory Get(Guid id);

        GalleryCategory Get(string name, Guid galleryId);

        IList<GalleryCategory> GetAllByGallery(Guid galleryId);
        
        void Add(GalleryCategory image);

        void Update(GalleryCategory image);

        void Delete(Guid id);

        IPagination<GalleryCategory> Get(Guid galleryId, int pageIndex, int pageSize);

        IList<GalleryCategory> GetAllByImage(Guid imageId);
    }
}
